import ToolsModel from "../../../models/Tools";
import Crypt from "../../../utils/Crypt";

const toolsModel = new ToolsModel()

Page({
  data: {},
  onLoad: function (options) {
    toolsModel.getService().then(response => {
      let { data } = response
      data = Crypt.parse(data)
      this.setData({ ...data })
    })
  },

  mobile() {
    const mobile = this.data.mobile
    wx.makePhoneCall({
      phoneNumber: mobile,
      fail: err => {
        // console.log(err)
      }
    })
  },

  handleContact() {

  }
});
